
package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.MsgTemplateEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2018-07-23 11:31:42
*/
@Repository
@Mapper
public interface MsgTemplateDao {


	Integer insert(MsgTemplateEntity msgTemplate);
	Integer update(MsgTemplateEntity msgTemplate);

	void insertBatch(List<MsgTemplateEntity> msgTemplateList);

	Integer deleteByKey(@Param("key") Integer key,@Param("corpid") String corpid);
	MsgTemplateEntity getByKey (@Param("key") Integer key);


	List<MsgTemplateEntity>  findEntitys(@Param("param")Map<String ,Object>  param);
	Integer getEntitysCount(@Param("param")Map<String ,Object>  param);



}